package com.gitee.deeround.demo.service.impl;

import com.gitee.deeround.demo.domain.Test;
import com.gitee.deeround.demo.service.MyTest1;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wanghao 913351190@qq.com
 * @create 2023/11/8 9:48
 */
@Service
public class MyTest1Impl implements MyTest1 {

    @Override
    public boolean test1() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return true;
    }

    @Override
    public char test2() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 'b';
    }

    @Override
    public byte test3() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 127;
    }

    @Override
    public short test4() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 11;
    }

    @Override
    public long test5() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 22;
    }

    @Override
    public float test6() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 33;
    }

    @Override
    public double test7() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return 44;
    }

    @Override
    public void test8() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
    }

    @Override
    public String test9() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return "aaaa";
    }

    @Override
    public Test test91() {
        System.out.println("这是正式代码1");
        System.out.println("这是正式代码2");
        return new Test();
    }

    @Override
    public int[] test92() {
        return new int[]{
                1
        };
    }

    @Override
    public String[] test93() {
        return new String[]{
                "a", "b"
        };
    }

    @Override
    public List<Test> test94() {
        return new ArrayList<Test>();
    }

    @Override
    public List<Integer> test95() {
        return new ArrayList<Integer>();
    }
}
